package com.lswms.modules.lswms.entity.task;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lswms.common.entity.LswmsBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.sql.Time;
import java.util.Date;

/**
 * 任务
 *
 * @author DX sunlightcs@gmail.com
 * @since 1.0.0 2021-06-22
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("lswms_task")
public class TaskEntity extends LswmsBaseEntity {
	private static final long serialVersionUID = 1L;

    /**
     * 任务号
     */
     @TableField(value="taskkey")
	private String taskkey;
    /**
     * 任务类型
     */
     @TableField(value="tasktype")
	private String tasktype;
    /**
     * 优先级
     */
     @TableField(value="priority")
	private Integer priority;
    /**
     * 状态
     */
     @TableField(value="status")
	private Integer status;
    /**
     * 商品编码
     */
     @TableField(value="sku")
	private String sku;
    /**
     * 数量
     */
     @TableField(value="qty")
	private BigDecimal qty;
    /**
     * 来源单类型
     */
     @TableField(value="sourcetype")
	private String sourcetype;
    /**
     * 来源单号
     */
     @TableField(value="sourcekey")
	private String sourcekey;
    /**
     * 来源单行号
     */
     @TableField(value="sourceline")
	private Integer sourceline;
    /**
     * 来源单记录行号
     */
     @TableField(value="sourcelinelist")
	private Integer sourcelinelist;
    /**
     * 自库位
     */
     @TableField(value="fromlocation")
	private String fromlocation;
    /**
     * 至库位
     */
     @TableField(value="tolocation")
	private String tolocation;
    /**
     * 自托盘
     */
     @TableField(value="fromtray")
	private String fromtray;
    /**
     * 至托盘
     */
     @TableField(value="totray")
	private String totray;
    /**
     * 自箱
     */
     @TableField(value="frombox")
	private String frombox;
    /**
     * 至箱
     */
     @TableField(value="tobox")
	private String tobox;
    /**
     * 自批
     */
     @TableField(value="fromlot")
	private String fromlot;
    /**
     * 至批
     */
     @TableField(value="tolot")
	private String tolot;
    /**
     * 任务流水
     */
     @TableField(value="taskno")
	private String taskno;
    /**
     * 备注
     */
     @TableField(value="remark")
	private String remark;
    /**
     * 任务下发标志
     */
     @TableField(value="sendflag")
	private String sendflag;
    /**
     * 任务下发时间
     */
     @TableField(value="sendtime")
	private Date sendtime;
    /**
     * 任务接收时间
     */
     @TableField(value="receivetime")
	private Date receivetime;
 
     @TableField(value="ip")
  	private String ip;
     
     @TableField(value="weight")
 	private BigDecimal weight;
     
     @TableField(exist=false)
  	private Date lot1;

     @TableField(exist=false)
  	private Date lot2;

     @TableField(exist=false)
  	private String lot3;

     @TableField(exist=false)
  	private String lot4;

     @TableField(exist=false)
  	private String lot5;

     @TableField(exist=false)
  	private String lot6;

     @TableField(exist=false)
  	private String lot7;

     @TableField(exist=false)
  	private String lot8;

     @TableField(exist=false)
  	private String lot9;

     @TableField(exist=false)
  	private String lot10;
     
     @TableField(exist=false)
   	private String lot11;
     
     @TableField(exist=false)
   	private String lot12;
     
     @TableField(exist=false)
   	private String lot13;
     
     @TableField(exist=false)
   	private String lot14;
     
     @TableField(exist=false)
   	private String lot15;
     
     @TableField(exist=false)
   	private String tasktypestr;
     
     @TableField(exist=false)
   	private String statusstr;
     
     @TableField(exist=false)
   	private String fromboxstr;
     
     @TableField(exist=false)
   	private String toboxstr;
     
     @TableField(exist=false)
   	private String descr;

    @TableField(exist=false)
    private String factorycdoe;

    @TableField(exist=false)
    private String recipient;

    @TableField(exist=false)
    private Time addtime;

    
}